package com.foreknow.aop;

/**
 * 歌唱家
 */
public class Instrumentalist implements Performer {
    private String song; //唱歌
    private Instrument instrument; //玩乐器

    public String getSong() {
        return song;
    }

    public void setSong(String song) {
        this.song = song;
    }

    public Instrument getInstrument() {
        return instrument;
    }

    public void setInstrument(Instrument instrument) {
        this.instrument = instrument;
    }

    @Override
    public void perform() {
        System.out.println("play" + song);
        instrument.play();
    }
}
